//
//  OSL_BottomPopup_Nav_Demo1VC.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/9/20.
//

import UIKit

class OSL_BottomPopup_Nav_Demo1VC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        view.backgroundColor = .brown
        
        _ = UIButton(type: .custom).then({ make in
            view.addSubview(make)
            make.setTitle("push", for: .normal)
            make.backgroundColor = .blue
            make.snp.makeConstraints { make in
                make.left.equalTo(50)
                make.top.equalTo(180)
                make.size.equalTo(CGSize(width: 200, height: 40))
            }
            make.addTarget(self, action: #selector(pushAction), for: .touchUpInside)
        })
    }
    
    @objc private func pushAction() {
        let demo2VC = OSL_BottomPopup_Nav_Demo2VC()
        navigationController?.pushViewController(demo2VC, animated: true)
    }
}
